package cn.iot.controller.sys;

import cn.iot.common.dto.ResultMsg;
import cn.iot.sys.service.SysMajorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/major")
public class SysMajorController {
    @Autowired
    private SysMajorService sysMajorService;
    private Logger logger = LoggerFactory.getLogger(getClass());

    @PostMapping("getSysMajorList")
    public ResultMsg getSysMajorList(){
        logger.info("SysMajorController getSysMajorList start ...");
        ResultMsg msg = sysMajorService.getSysMajorList();
        logger.debug("SysMajorController getSysMajorList msg{}",msg);
        return msg;
    }
}
